PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-07 10:10:43.852389+00:00 (UTC)
In US/Central Time, this is 2024-03-07 04:10:43.852389-06:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../_images/d068cbeecbcfab3ed8867e3ea7a0d49109a7c4e3be35c081c00fcbed3801f3ba.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../_images/83ed7c45dbcd2f779daed034d0615d6714b13d7b59f437f6e87cfb82f6a1925c.png
fig = px.line(vix)
fig.show()
../_images/0a222b199e099392c7bb9fe945ea0591d46ed7e15c2d60fc78b3b2ee581d715d.png